import iViewTheme from 'iview-layout-themes'
const axios = iViewTheme.util.apiRequest
export const permissionCategoryAddEdit = (data) => {
  return axios.request({
    url: '/wl/admin/permission_category',
    data: data,
    type: 'post',
    php: true
  })
}
export const permissionCategoryList = () => {
  return axios.request({
    url: '/wl/admin/permission_category_index',
    php: true
  })
}
export const permissionCategoryInfo = (id) => {
  return axios.request({
    url: '/wl/admin/permission_category_info',
    data: { id: id },
    php: true
  })
}
export const userList = (data) => {
  return axios.request({
    url: '/wl/admin/user_list',
    data: data,
    php: true
  })
}
export const userDel = (data) => {
  return axios.request({
    url: '/wl/admin/user_del',
    data: data,
    php: true
  })
}
